import flash.events.Event;
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.geom.Matrix;
import flash.text.TextField;
import flash.text.TextFormat;

import Images;
import CutScene;
import CustomSprite;
import TimelineContainer;

class Achievements {
  public var KindHearted:Bool;
  public var DecreasedWorldSuck:Bool;
  public var SaveTheWorld:Bool;
  public var SmallFortune:Bool;
  public var Fortune:Bool;
  public var SmallCountry:Bool;
  public var PerfectPair:Bool;
  public var MoreThanBalance:Bool;
  public function new()
  {
    KindHearted= false;
    DecreasedWorldSuck= false;
    SaveTheWorld= false;
    SmallFortune= false;
    Fortune= false;
    SmallCountry = false;
    PerfectPair= false;
    MoreThanBalance = false;
  }
  public function getAchievementsEarned():Int
  {
    var AchievementsEarned = 0;
    if(KindHearted)
    {
      AchievementsEarned++;
    }
    if(DecreasedWorldSuck)
    {
      AchievementsEarned++;
    }
    if(SaveTheWorld)
    {
      AchievementsEarned++;
    }
    if(SmallFortune)
    {
      AchievementsEarned++;
    }
    if(Fortune)
    {
      AchievementsEarned++;
    }
    if(SmallCountry)
    {
      AchievementsEarned++;
    }
    if(PerfectPair)
    {
      AchievementsEarned++;
    }
    if(MoreThanBalance)
    {
      AchievementsEarned++;
    }
    return AchievementsEarned;
  }
 }

